Use following code snippet to add value in dropdown list using jquery
function addCombo(){ var optName = $("#other").attr("value");
$('#category').append("<option value='"+ optName +"'>"+ optName +"</option>");
$("#other").attr("value",""); }
Here other is id of drop down list
Liked By
Write Answer
Be add the value in dropdown list
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy
Join MindStick Community
You have need login or register for voting of answers or question.
Anonymous User
20-May-2011Hi...
Use following code snippet to add value in dropdown list using jquery
Here other is id of drop down list